﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BMS.Entity.Flow
{
    /// <summary>
    /// 流程配置表
    /// </summary>
    public class WorkFlow : AuditField<int>
    {
        /// <summary>
        /// 流程名称
        /// </summary>
        public string? Name { get; set; }
        /// <summary>
        /// 该流程涉及到的表名
        /// </summary>
        public string? WorkTable { get; set; }
        /// <summary>
        /// 该流程涉及到的中文表名
        /// </summary>
        public string? WorkTableName { get; set; }
        /// <summary>
        /// 结点信息配置的json字符串
        /// </summary>
        public string NodeConfig { get; set; }
        /// <summary>
        /// 连接配置的json字符串
        /// </summary>
        public string LinkConfig { get; set; }
        /// <summary>
        /// 排序值
        /// </summary>
        public int? OrderSort { get; set; } = 100;
        /// <summary>
        /// 审批中是否可编辑
        /// </summary>
        public bool AuditingEdit { get; set; } = true;
        /// <summary>
        /// 是否启用该流程
        /// </summary>
        public bool IsEnable { get; set; } = true;
        /// <summary>
        /// 流程备注
        /// </summary>
        public string? Remark { get; set; }
    }
}
